package com.wu.cloud.userservice.controller;


import bean.PeskResponseEntity;
import com.wu.cloud.userservice.entity.vo.UserVo;
import com.wu.cloud.userservice.service.UserAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xwu36
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    @Qualifier("userAccountServiceImpl")
    UserAccountService userAccountService;

    @GetMapping(value = "/list")
    public PeskResponseEntity getUser(UserVo userVo) {
        return userAccountService.queryUserList(userVo);
    }


}
